-- GENERATED SPELL FOR [Korfax, Champion of the Light] --


function spell0_29176(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(53631,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29176', 588, 1)
end

function spell1_29176(pUnit, Event) --@Heroic Leap,n/a--
pUnit:FullCastSpellOnTarget(53625,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29176', 2283, 1)
end

function Sorts_29176(pUnit, Event)
local choix_sorts_29176 = math.random(0, 1)
if choix_sorts_29176 == 0 then
pUnit:RegisterEvent('spell0_29176', 1, 1)
end
if choix_sorts_29176 == 1 then
pUnit:RegisterEvent('spell1_29176', 1, 1)
end
end

function mob29176_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29176', math.random(1500, 3000), 1)
end

function mob29176_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29176_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29176_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29176, 1, 'mob29176_Action')
RegisterUnitEvent(29176, 2, 'mob29176_Leave')
RegisterUnitEvent(29176, 3, 'mob29176_Kill')
RegisterUnitEvent(29176, 4, 'mob29176_Die')
